import { IDoom3Tokenizer,Doom3Factory,IDoom3Token,ETokenType } from "./mysrc/doom3Tokenizer";
let tokenizer:IDoom3Tokenizer = Doom3Factory.createDoom3Tokenizer();
let input:string = "[3.14,-3.14,.14,-.14,3.,-3.,+3.14]";

tokenizer.setSource(input);
let token:IDoom3Token = tokenizer.createIDoom3Token();

while(tokenizer.getNextToken(token)){
  if( token.type === ETokenType.NUMBER ){
    console.log("NUMBER:"+token.getFloat());
  }else{
    console.log("STRING:"+token.getString());
  }
}